<?php
	/**
	*	 文件名：head.php
	*    创建人: 杨旭升
	*    创建时间: 2015/3/5
	*    最后修改时间: 2015/3/5
	*    文件功能概述: 网页头
	*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{{title}}</title>
	<?php
		//加载必须的js和css
		$includeJs = '';
		$includeCss = '';
		if(isset($beforeJs)) { 
			foreach ($beforeJs as $key => $value) {
				$includeJs .= '<script type="text/javascript" src="__PUBLIC__/js/'.$value.'.js"></script>';
			}
		}
		if(isset($beforeCss)) { 
			foreach ($beforeCss as $key => $value) {
				$includeCss .= '<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/'.$value.'.css">';
			}
		}
		//加载js和css
		echo $includeJs;
		echo $includeCss;
	?>
</head>
<body>